﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Clinic.Model.Dto
{
    /// <summary>
    /// 权限
    /// </summary>
    public class PermissionDto
    {
        /// <summary>
        /// 菜单Id
        /// </summary>
        public Guid MenuId { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int Sort {  get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; } = string.Empty;
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string MenuIcon { get; set; } = string.Empty;
        /// <summary>
        /// 界面名称
        /// </summary>
        public string ViewName { get; set; } = string.Empty;
        /// <summary>
        /// 权限值（增删改，对应权限枚举值）
        /// </summary>
        public int Power { get; set; } = 0;
        /// <summary>
        /// 自定义按钮权限
        /// </summary>
        public List<string> PawerExtends { get; set; } = new List<string>();
        /// <summary>
        /// 父级菜单Id
        /// </summary>
        public Guid? ParentMenuId { get; set; }
    }
}
